package org.example.inventory.entity;

import org.example.inventory.enums.UserRole;
import org.example.inventory.enums.UserStatus;


import java.time.LocalDateTime;

/**
 * 用户类（对应用户表）
 */
public class User extends BaseEntity{
    private String username;            // 用户名
    private String password;            // 密码
    private UserRole role;              // 角色
    private String realName;            // 真实姓名
    private String email;               // 邮箱
    private String phone;               // 电话
    private UserStatus status;          // 状态
    private LocalDateTime createTime;   // 创建时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserRole getRole() {
        return role;
    }

    public void setRole(UserRole role) {
        this.role = role;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public UserStatus getStatus() {
        return status;
    }

    public void setStatus(UserStatus status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
